<template>
  <div>
    <event-bus :value="inputValue" @input="handlerInput"></event-bus>
    <p>{{inputValue}}</p>
    <event-bus2 :content="inputValue"></event-bus2>
  </div>
</template>

<script>
import eventBus from "@/views/eventBus.vue";
import eventBus2 from "@/views/eventBus2.vue";
export default {
  components: {
    eventBus,
    eventBus2
  },
  data() {
    return {
      inputValue: "",
      content:"alalla"
    };
  },
  methods: {
    handlerInput(e) {
      this.inputValue = e;
    },
  },
};
</script>

<style>
</style>
